package com.meilai.project.vo.business.media;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * @author 杨凯博
 * @date 2022/2/13
 */


@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value="返回对象-点位-楼栋", description="返回对象-点位-楼栋")
public class MediaPointHouseVO implements Comparable<MediaPointHouseVO>{
    @ApiModelProperty("楼号")
    private String buildingName;

    @ApiModelProperty(value = "点位-楼单元集合")
    private List<MediaPointUnitVO> unitList;

    @JsonIgnore
    @ApiModelProperty("楼号-数字排序")
    private String building_number;
    @JsonIgnore
    @ApiModelProperty(value = "楼单元map集合,不返回前端")
    private Map<String,MediaPointUnitVO> unitMap;

    @Override
    public int compareTo(MediaPointHouseVO o) {
        return this.building_number.compareTo(o.building_number);
    }
}
